<ol class="pagination">
  {% if pager.has_previous() %}
    <li>
      <a rel="prev" href="{{ pager.url|urlparams(page=pager.previous_page_number()) }}">
        {{ _('Prev') }}
      </a>
    </li>
  {% endif %}
  {% if pager.dotted_lower %}
    <li><a href="{{ pager.url|urlparams(page=1) }}">{{ 1 }}</a></li>
    <li class="skip">&hellip;</li>
  {% endif %}
  {% for x in pager.page_range %}
  <li {{ x|class_selected(pager.number) }}>
    <a href="{{ pager.url|urlparams(page=x) }}">{{ x }}</a>
  </li>
  {% endfor %}
  {% if pager.dotted_upper %}
    <li class="skip">&hellip;</li>
    <li><a href="{{ pager.url|urlparams(page=num_pages) }}">{{ num_pages }}</a></li>
  {% endif %}
  {% if pager.has_next() %}
    <li>
      <a rel="next" href="{{ pager.url|urlparams(page=pager.next_page_number()) }}">
        {{ _('Next') }}
      </a>
    </li>
  {% endif %}
</ol>
<div class="num-results">
  {% trans begin=pager.start_index(), end=pager.end_index(),
           count=count|numberfmt %}
    Results <strong>{{ begin }}</strong>&ndash;<strong>{{ end }}</strong>
    of <strong>{{ count }}</strong>
  {% endtrans %}
</div>
